class CountryEntity {
  int code;
  double lng;
  String emoji;
  String en;
  String locale;
  double lat;

  CountryEntity(
      {this.code, this.lng, this.emoji, this.en, this.locale, this.lat});

  CountryEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    lng = json['lng'];
    emoji = json['emoji'];
    en = json['en'];
    locale = json['locale'];
    lat = json['lat'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['lng'] = this.lng;
    data['emoji'] = this.emoji;
    data['en'] = this.en;
    data['locale'] = this.locale;
    data['lat'] = this.lat;
    return data;
  }
}
